ci(bump-version-pr): support custom base version and target branch#12533
Open
mitsudome-r wants to merge 2 commits intoautowarefoundation:mainfrom
Open
ci(bump-version-pr): support custom base version and target branch#12533mitsudome-r wants to merge 2 commits intoautowarefoundation:mainfrom
mitsudome-r wants to merge 2 commits intoautowarefoundation:mainfrom
Conversation
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
|
Thank you for contributing to the Autoware project! 🚧 If your pull request is in progress, switch it to draft mode. Please ensure:
|
Signed-off-by: Ryohsuke Mitsudome <ryohsuke.mitsudome@tier4.jp>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Summary
Current bump-version-pr workflow fails when there are packages with different versions described in package.xml versions(example). This reworks the
bump-version-prworkflow so it can bump from any specified base version, target any branch, and produces a clean single-commit PR with a more informative description.Changes
New
workflow_dispatchinputsbase_version— git tag to bump from. Defaults to the latest semantic version tag (MAJOR.MINOR.PATCH) found in the repo.target_branch— branch to open the PR against. Defaults tomain.The previous behavior was hardcoded to check out the
humblebranch and targetmain. Both are now configurable.Auto-align diverged packages before
catkin_prepare_releasePackages whose
<version>inpackage.xmldoes not matchbase_versionwould otherwise causecatkin_generate_changelog/catkin_prepare_releaseto fail. The workflow now, in a single pass over allpackage.xmlfiles:<version>tobase_version, andCHANGELOG.rstCHANGELOG.rstRelated links
Parent Issue:
How was this PR tested?
Tested on my fork:
Notes for reviewers
None.
Interface changes
None.
Effects on system behavior
None.